package com.tg.data.http.entity;

import android.os.Parcel;
import android.os.Parcelable;

public class NotifyItemBean implements Parcelable {
    protected NotifyItemBean(Parcel in) {
        tag = in.readString();
        status = in.readByte() != 0;
        tag_name = in.readString();
    }

    public NotifyItemBean() {

    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(tag);
        dest.writeByte((byte) (status ? 1 : 0));
        dest.writeString(tag_name);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<NotifyItemBean> CREATOR = new Creator<NotifyItemBean>() {
        @Override
        public NotifyItemBean createFromParcel(Parcel in) {
            return new NotifyItemBean(in);
        }

        @Override
        public NotifyItemBean[] newArray(int size) {
            return new NotifyItemBean[size];
        }
    };

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    private String tag;

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    private boolean status;

    private String tag_name;

    public String getTag_name() {
        return tag_name;
    }

    public void setTag_name(String tag_name) {
        this.tag_name = tag_name;
    }

    @Override
    public String toString() {
        return "NotifyItemBean{" +
                "tag='" + tag + '\'' +
                ", status=" + status +
                ", tag_name='" + tag_name + '\'' +
                '}';
    }
}
